import request from '@/utils/request'

export const getArticleDetailApi = (id) => {
  return request.get('/h5/interview/show', {
    params: {
      id
    }
  })
}

// 点赞
export const updateLikeApi = (id) => {
  return request.post('/h5/interview/opt', {
    id,
    optType: 1 // 喜欢
  })
}
// 收藏
export const updateCollectApi = (id) => {
  return request.post('/h5/interview/opt', {
    id,
    optType: 2 // 收藏
  })
}
